#pragma once 

#include <string>
using namespace std;

#include "topdbs_cross_platform.hpp"

namespace topdbs
{
	class TOPDBS_API topdbs_encrypt_util
	{
	public:
		static std::string MD5_Encode(const std::string& source);	

		static void EnlargeCh(const unsigned char *iPin,unsigned char *oHex,int iLen );
		static void EncapCh(const unsigned char	*iPin,unsigned char	*oHex,int iLen );
		
		static void DecryptDes( char *key,char *uBuffer,int nLng );
		static void EncryptDes( char *key,char *uBuffer,int nLng );

		static void PasswdEnc(const char *iDbPswd,char *oDbPswdEnc );
		static void PasswdDec(const char *iDbPswdEnc,char *oDbPswd );	
	};
}


